package com.delu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单详细信息
 * </p>
 *
 * @author 6子的爹
 * @since 2021-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("travel_detail")
@ApiModel(value="TravelDetail对象", description="订单详细信息")
public class TravelDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单详细信息id")
    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Long orderDetailId;

    @ApiModelProperty(value = "关联订单号")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "车辆图片")
    @TableField("car_img")
    private String carImg;

    @ApiModelProperty(value = "车辆类型")
    @TableField("car_type")
    private String carType;

    @ApiModelProperty(value = "取车地点")
    @TableField("pick_site")
    private String pickSite;

    @ApiModelProperty(value = "还车地点")
    @TableField("return_site")
    private String returnSite;

    @ApiModelProperty(value = "使用时长")
    @TableField("car_time")
    private String carTime;

    @ApiModelProperty(value = "承租人")
    @TableField("tenant")
    private String tenant;

    @ApiModelProperty(value = "汽车id")
    @TableField("car_id")
    private Long carId;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

}
